import styled from 'styled-components';

const js = function(e) {
  return e/16
}

export const QuestionWrapper = styled.div`
  width: 100%;
  margin-bottom: 100px;
`

export const Content = styled.div`
  width: 100%;
`
export const ReplyWrapper = styled.div`
  position: fixed;
  bottom: 300px;
  border-top: 1px solid #f0f0f0;
  width: 100%;
`

export const QuestionList = styled.div`
  width: 100%;
`

export const QuestionLayout = styled.div`
padding: 1rem;
border-bottom: 1px solid #f0f0f0;
position: relative;
.avatar {
  position: absolute;
  border-radius: 50%;
}
`

export const CommentWrapper = styled.div`
  margin-left: 52px;
  p {
    font-size: 14px;
    color: #333;
  }
  .time {
    font-size: 12px;
    color: #999;
    line-height: ${js(24)}rem;
    a {
      float: right;
      margin-right: 30px;
    }
  }
  .content {
    font-size: ${js(16)}rem;
    color: #666;
    line-height: 1.5;
  }
  .comment {
    color: #333;
    font-weight: bold;
    span {
      color: #8bca31;
      font-size: normal;
    }
  }
  .child-comment {
    background-color: #f0f0f0;
    padding: 0.5rem;
    p {
      line-height: 1.5;
    }
  }
  .reply-btn {
    background-color: #f0f0f0;
    padding-left: 0.5rem;
    color: '#8BCA34';
  }
  .response {
    background: #eaeaec;
    padding: 6px 10px;
    li {
      padding-bottom: 4px;
      border-bottom: 1px solid #ccc;
      .response-com {
        color: #333;
        span {
          color: #8bca31;
          font-size: normal;
        }
      }
    }
  }

`

export const TabsWrapper = styled.div`
  position: fixed;
  top: 300px;
  bottom: 0;
  width: 100%;
  ul {
    width: 100%;
    background-color: #fff;
    height: 40px;
    li {
      float: left;
      width: 50%;
      line-height: 40px;
      text-align: center;
      &.active {
        border-bottom: 1px solid rgb(139, 202, 52);
      }
    }
  }

`